<?php
namespace app\parks\model;
use think\Model;
 

class Parks extends  Model{
	protected static function init()
	{
		parent::init();
	}
	/**
	 * 判断园区是否存在
	 */
	static public function check_parks_eg($parkid){
		if(empty($parkid)){
			return false;
		}
		$result=db('parks')->field('id')->where(['status'=>1])->find($parkid);
		if($result){
			return true;
		}else{
			return false;
		}
		
		
		
		
	}
}